import jsonp from '../common/js/jsonp'
import { commonParams, options } from './config'

export function getRecommend () {
  // 定义请求的地址
  const url = 'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg'

  // 定义请求的data参数
  const data = Object.assign({}, commonParams, {
    platform: 'h5',
    uin: 0,
    needNewCode: 1
  })

  // 返回包装好的jsonp
  return jsonp(url, data, options)
}
